﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="MyAccountOrders.aspx.cs" Inherits="ProjectSem3.Admin.WebForm18" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentTabs" runat="server">
 <ul>
        <li><a href="MyAccount.aspx" ><span>Information</span></a></li>
        <li><a href="MyAccountEdit.aspx" ><span>Edit</span></a></li>
        <li><a href="MyAccountOrders.aspx" class="current"><span>Orders</span></a></li>
    </ul>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPage" runat="server">
 <div class="grid_9">
        <h1 class="dashboard">
            Orders
        </h1>
    </div>
    <div class="clear">
    </div>
   

   
    <asp:ListView ID="ListView1" runat="server" 
        OnPagePropertiesChanging="ListView1_PagePropertiesChanging">
        <LayoutTemplate>
            <div class="portlet">
                <div class="portlet-content nopadding">
                    <table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" summary="Employee Pay Sheet">
                        <thead>
                            <tr>
                               <th>Order ID</th>
                               <th>Customer name </th>
                               <th>Customer address </th>
                               <th>Company address</th>
                               <th>Phone</th>
                               <th>Gender</th>
                               <th>Date order</th>
                               <th>Price</th>
                            </tr>
                        </thead>
                        <tbody>
                            <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>
                        </tbody>
                    </table>
                </div>
            </div>
        </LayoutTemplate>
        <ItemTemplate>
            <tr id="trlist" runat="server">
                <td><%# Eval("OrderID") %> </td>
                <td><%# Eval("Customer.Name") %> </td>
                <td><%# Eval("Customer.Address") %> </td>
                <td><%# Eval("Customer.CompanyAddress") %> </td>
                <td><%# Eval("Customer.Phone") %> </td>
                <td><%# Eval("Customer.Gender").ToString().ToLower()=="true"?"Male":"Female" %> </td>
                <td><%# Eval("DateOrder") %> </td>
                <td><%# Eval("Total") %> </td>
            </tr>
        </ItemTemplate>
    </asp:ListView>
    <div style="float:right;width:100%">
    <asp:DataPager ID="DataPager1" runat="server" PageSize="10" PagedControlID="ListView1">
        <Fields>
            <asp:NextPreviousPagerField ShowFirstPageButton="true" ShowPreviousPageButton="true"
                ButtonType="Link" ShowNextPageButton="false" ShowLastPageButton="false" />
            <asp:NumericPagerField ButtonType="Link" />
            <asp:NextPreviousPagerField ShowFirstPageButton="false" ButtonType="Link" ShowPreviousPageButton="false"
                ShowNextPageButton="true" ShowLastPageButton="true" />
        </Fields>
    </asp:DataPager>
   
    </div>

    <script type="text/javascript">

        $('div #content').css('padding', '0px');
      
    </script>
</asp:Content>
